package cn.xiaopengstack.types.event;

import cn.xiaopengstack.types.common.TopicConstants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author jiangyangang
 */
public class NotifyEvent extends BaseEvent<NotifyEvent.NotifyEventMessage>{

    public NotifyEvent(NotifyEventMessage data, String key) {
        super(data, key);
    }

    @Override
    public String topic() {
        return TopicConstants.GROUP_BUY_SUCCESS_NOTIFY_MQ;
    }


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class NotifyEventMessage{

        /**
         * 组队ID
         */
        private String teamId;

        /**
         * 平台
         */
        private List<String> outTradeNoList;
    }
}
